package com.cdpm.web.service.impl;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.cdpm.common.utils.StringUtils;
import com.cdpm.system.domain.StrategyInstanceNode;
import com.cdpm.web.dto.ENUM_ONLINE_ACTIVITY_TYPE;
import com.cdpm.web.dto.EnumInfoDTO;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;

/**
 * @description:
 * @author: longjy
 * @create: 2024-09-04 17:59
 **/
public class TestUtil {
    public static void main(String[] args) {

        System.out.println();
    }

    public static int generateRandomNumber(int digits) {
        Random random = new Random();
        int min = (int) Math.pow(10, digits - 1);
        int max = (int) Math.pow(10, digits) - 1;
        return random.nextInt(max - min + 1) + min;
    }

}
